package cn.edu.zut.cs.Business;

import cn.edu.zut.cs.DAO.InfoDAO;
import cn.edu.zut.cs.Model.Info;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SaleService {
    InfoDAO infoDAO;


@Autowired
    public void setInfoDAO(InfoDAO infoDAO) {
        this.infoDAO = infoDAO;
    }

    public void insert(Info info){
    infoDAO.insertInfo(info);
    }
    public List<Info> queryAll(){
        return infoDAO.queryAll();
    }
    }